<include file="../header" />
<body class="J_scroll_fixed">
	<div class="wrap J_check_wrap">

		<form class="form-horizontal J_ajaxForms" name="myform" id="myform"
			action="" method="post">
			<fieldset>
				<div class="tabbable">
					<div class="tab-content">
						<div class="tab-pane active" id="A">
							<fieldset>
								<div class="control-group">
									<label class="control-label">主菜单选择：</label>
									<div class="controls">
                                                                                <select id="menuId" name="menuId"class="form-control">
                                                                                        <foreach name="menuList" item="val">
                                                                                            <option value="{$val.menu_id}" <if condition="($item.menu_id eq $val.menu_id)">selected="selected"</if>>{$val.menu_name}</option>    		
                                                                                        </foreach>
                                                                                </select>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">子菜单：</label>
									<div class="controls">
                                                                                <input name="name" type="text" class="input" id="name" value="{$item.name}"><span class="must_red">*</span>
									</div>
								</div>
                                                                <div class="control-group">
									<label class="control-label">菜单地址：</label>
									<div class="controls">
                                                                                <input name="targetUrl" type="text" class="input" id="targetUrl" value="{$item.target_url}"><span class="must_red">*</span>
									</div>
								</div>
                                                            
                                                                <div class="control-group">
									<label class="control-label">权重：</label>
									<div class="controls">
                                                                                <input name="sort" type="text" class="input" id="sort" value="{$item.sort}"><span class="must_red">*</span>
									</div>
								</div>

							</fieldset>
						</div>
						
						
					</div>
				</div>

				<div class="form-actions">
                                        <button type="submit" class="btn btn-primary btn_submit J_ajax_submit_btn">开始生成</button>
                                        <a class="btn" href="__URL__">返回</a>
				</div>
			</fieldset>
		</form>

	</div>
	<script type="text/javascript" src="__ROOT__/statics/js/common.js"></script>
		
</body>
</html>
